﻿using WH.Contracts.Systems.Menus;
using WH.Model.Systems;
using WH.Repositories.BaseRepositories;
using Rw.Core.Common.Paging;
using WH.Common.Paging;

namespace WH.Repositories.IRepositories.ISystem
{
    public interface IMenuRepository : IBaseRepository<MenuEntity>
    {
        /// <summary>
        /// 分页数据
        /// </summary>
        /// <param name="pager">分页</param>
        /// <param name="filter">查询条件实体</param>
        /// <returns></returns>
        Task<IPagedList<MenuEntity>> GetMenusByPageAsync(PageParam pager, MenuFilter filter);

        /// <summary>
        /// 按条件查询菜单列表
        /// </summary>
        /// <param name="filter">查询条件实体</param>
        /// <returns></returns>
        Task<IList<MenuEntity>> GetMenusAsync(MenuFilter filter);
    }
}
